<template>
	<div class="nodata" v-if="show">
		<img class="nodata_img" :src="noImg"/>
		<div class="text-gray text-sm">
			{{text}}
		</div>
	</div>
</template>

<script>
import noPage from '@/assets/img/noPage.png'
export default {
  data() {
    return {}
  },
  props: {
    text: {
      type: String,
      default: '暂无数据'
    },
    noImg: {
      type: String,
      default: noPage
    },
    show: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style>
  .nodata_img {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
  }
</style>
